#!/bin/bash

export MOCKER_ROOT_DIR=/home/shellunit/docker

function replace_symble() {
    echo $1 | sed 's/\//\\\//g'
}

cat 1.txt

echo $(cat 1.txt |
    # sed "s/source\s\+\//source $(replace_symble $MOCKER_ROOT_DIR)\//g" |
    # sed "s/\.\s\+\//source $(replace_symble $MOCKER_ROOT_DIR)\//g" |
    # sed "s/>>\s\+\//>> $(replace_symble $MOCKER_ROOT_DIR)\//g" |
    sed "s/\s\+\// $(replace_symble $MOCKER_ROOT_DIR)\//g"
    )